import 'package:get/get.dart';
import 'package:love_newf/app/com/http/http_request.dart';
import 'package:love_newf/app/com/model/friend_user_info_model.dart';

class SearchLogic extends GetxController {
  String keyword = "";

  List<FriendUserInfoModel>? datas;

  Future<List<FriendUserInfoModel>?> getData() async {
    List<FriendUserInfoModel>? data = await HttpRequest()
        .postList<FriendUserInfoModel>(
            "/api/friend/common/searchFriend", <String, dynamic>{
      "keyword": keyword,
    });
    datas = data;
    return datas;
  }
}
